package com.matt.domain.courseV2;

import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 提供者，供应商。
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "tc_vendor")
public class Vendor extends Domain implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 供应商名字
     */
    @Column(name = "name", nullable = false)
    private String name;

    /**
     * 供应商描述

     */
    @Column(name = "description")
    private String desc;

    /**
     * 服务联系方式
     */
    @Column(name = "service", nullable = false)
    private String contact;

    /**
     * 备注
     */
    @Column(name = "comment")
    private String comment;

    @Column(name = "disabled")
    private Boolean disabled = Boolean.FALSE;

    /**
     * 供应商logo地址
     */
    @Column(name = "logo")
    private String logo;

    /**
     * 供应商封面
     */
    @Column(name = "cover")
    private String cover;

}